/*
 * @(#)ManageController.java $version 2013. 5. 29.
 *
 */

package com.pace.gonu.manage;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author pace
 */
@Controller
@RequestMapping(value = "/gonu/manager")
public class ManageController {
	@Autowired
	private ManageService manageService;

	@RequestMapping(value = "/init.json", method = RequestMethod.GET)
	@ResponseBody
	public ModelMap init(HttpServletRequest request) {
		ModelMap mm = new ModelMap();
		manageService.init();
		mm.addAttribute("message", "ok");
		return mm;
	}
}
